package com.mccrea.pattern.mediator;

/**
 * @Classname ConcreteColleague3
 * @Description 同事类2
 * @Date 2021/5/24 0024 11:37
 * @Created by Mccrea_Gao
 */
public class ConcreteColleague3 extends Colleague{
    @Override
    public void receive() {
        System.out.println("同事类3收到信息");
    }

    @Override
    public void send() {
        System.out.println("同事类3发出信息");
        // 中介者转发信息
        mediator.relay(this);
    }
}
